package com.example.demo;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

import java.util.List;
import java.util.Map;

@Data
@Configuration
@ConfigurationProperties(prefix = "student")
public class Student {
    private String name;
    private Integer age;
    private Integer id;
    private List<String> study;
    private Map<String,String> map;

//    @Bean
//    public Student student1(){
//        Student student1 = new Student();
//        student1.setName("1");
//        return student1;
//    }
}
